package com.example.chat.service

import androidx.annotation.WorkerThread
import com.example.chat.model.Message
import com.example.featuresdk.vo.Resource
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

@WorkerThread
interface MessageService {
    /**
     * get all messages for the specific topic
     */
    @GET("message/{topicId}/list")
    fun getMessages(@Path("topicId") topicId: Long): Call<Resource<List<Message>>>
}